targets = def.so
CXXFLAGS = -std=c++11 -I/usr/local/include
LDFLAGS = -L/usr/local/lib -llua

all: $(targets)

def.so: def.cpp
	g++ -o $@ -fpic -shared $(CXXFLAGS) $(LDFLAGS) $^

clean:
	rm -f *.o $(targets)

